package sy.services.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import sy.db.mysql.dao. KsTmDao;
import sy.db.mysql.model. KsTm;
import sy.pageModel.DataGrid;
import sy.services.KsTmServiceI;
@Service
public class  KsTmServiceImpl implements  KsTmServiceI {
	
	@Autowired
	 KsTmDao  ksTmDao;
	@Override
	public int deleteByPrimaryKey(String id) {
		return this.ksTmDao.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(KsTm record) {
		return this.ksTmDao.insertSelective(record);
	}

	@Override
	public KsTm selectByPrimaryKey(String id) {
		return this.ksTmDao.selectByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKeySelective(KsTm record) {
		return this.ksTmDao.updateByPrimaryKeySelective(record);
	}

	@Override
	public DataGrid findbyByGrid(Map map) {
		DataGrid dataGrid = new DataGrid();
		map.put("dataGrid", dataGrid);
		List<Map> retList = this.ksTmDao.findbyByGrid(map);
		dataGrid.setRows(retList);
		return dataGrid;
	}

	@Override
	public List<Map> findKSTM(Map map) {
		return ksTmDao.findKSTM(map);
	}

}
